package com.netsdk.config.json;


import com.alibaba.fastjson.JSON;
import com.netsdk.dto.EnterDTO;

import javax.websocket.EncodeException;
import javax.websocket.EndpointConfig;

/**
 * @Author aqie
 * @Date 2022/3/26 12:54
 * @desc
 */
public class EnterEncoder implements javax.websocket.Encoder.Text<EnterDTO> {
    @Override
    public String encode(EnterDTO enterDTO) throws EncodeException {
        return JSON.toJSONString(enterDTO);
    }

    @Override
    public void init(EndpointConfig endpointConfig) {

    }

    @Override
    public void destroy() {

    }
}
